package com.cskaoyan._02method._02test;

/**
 * @author Macro_Ray
 * @since 2024/3/5 10:39
 */
// 需求:定义一个方法，求一家商场每个季度的营业额，根据方法结果再计算出全年营业额

public class _01Define_01 {
    public static void main(String[] args) {
        int sums = getSum(10, 20, 30) + getSum(20, 30, 40) + getSum(30, 40, 50) + getSum(50, 60, 70);
        System.out.println(sums);

    }

    public static int getSum(int num1, int num2, int num3) {
        int sum = num1 + num2 + num3;
        return sum;

    }


}
